package com.mgface.thymeleaf.eventbus.a3;

import com.google.common.eventbus.EventBus;
import com.mgface.thymeleaf.eventbus.a1.TestEvent;

public class TestDeadEventListeners {
	public static void main(String[] args) {
		EventBus eventBus = new EventBus("test");               
        DeadEventListener deadEventListener = new DeadEventListener();  
        eventBus.register(deadEventListener);  

        eventBus.post(new TestEvent(200));         
        eventBus.post(new TestEvent(300));        
       
        System.out.println("deadEvent:"+deadEventListener.isNotDelivered());
	}
}
